import request from '@/utils/request'

// 获取链接列表
export function getLinkInfo(data,page) {
    return request({
        url: '/Operations_short_connection/short_connection_list/'+(page?page:1),
        method: 'post',
        data: data
    })
}

// 链接列表分页
export function getLinkInfoPage(data) {
    return request({
        url: 'Operations_short_connection/short_connection_page',
        method: 'post',
        data: data
    })
}

// 生成短链
export function createLink(data) {
    return request({
        url: '/Operations_short_connection/short_connection_create',
        method: 'post',
        data: data
    })
}

// 生成短链
export function deleteLink(data) {
    return request({
        url: '/Operations_short_connection/short_connection_del',
        method: 'post',
        data: data
    })
}
